Class symantec.itools.awt.ScrollingPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.ScrollingPanel

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----ScrollPane
                           |
                           +----symantec.itools.awt.ScrollingPanel

public class ScrollingPanel
extends ScrollPane
Similar to java.awt.ScrollPane, but with better Interaction Wizard support.

The ScrollingPanel is a panel with automatic scroll bars. It may contain only one component/container/panel/etc. It automatically tracks the size of this (usually large) component and provides scroll bars so the entire component may be viewed within a panel of limited size. Typically, the added component would be a panel (or some other container) which would then contain a variety of other components.

Version:
1.1, August 30, 1997
Author:
Symantec
See Also:
ScrollPane

Constructor Index

 o symantec.itools.awt.ScrollingPanel()
Constructs a default ScrollingPanel.
 o symantec.itools.awt.ScrollingPanel(int)
Constructs a new ScrollingPanel initialized with the specified scrollbarDisplayPolicy.
 o symantec.itools.awt.ScrollingPanel(Component, int, int)
Constructs a new ScrollingPanel initialized with the specified component, minimum height and minimum width.

Method Index

 o getComponent()
Gets the current component in the ScrollingPanel.
 o getHorizontalGap()
 o getMinimumHeight()
Gets the value used for the minimumSize() height of the ScrollingPanel.
 o getMinimumSize()
 o getMinimumWidth()
Gets the current value used for the minimumSize() width of the ScrollingPanel.
 o getPreferredSize()
 o getScrollLineIncrement()
 o getShowHorizontalScroll()
 o getShowVerticalScroll()
 o getVerticalGap()
 o minimumSize()
Returns the minimum dimensions to properly display this component.
 o preferredSize()
Returns the recommended dimensions to properly display this component.
 o scrollDown()
Scrolls down by the number of pixels specified in the method setScrollLineIncrement().
 o scrollHorizontalAbsolute(int)
Scrolls to an absolute horizontal position.
 o scrollLeft()
Scrolls left by the number of pixels specified in the method setScrollLineIncrement().
 o scrollPageDown()
Scrolls one "page" down.
 o scrollPageLeft()
Scrolls one "page" left.
 o scrollPageRight()
Scrolls one "page" right.
 o scrollPageUp()
Scrolls one "page" up.
 o scrollRight()
Scrolls right by the number of pixels specified in the method setScrollLineIncrement().
 o scrollUp()
Scrolls up by the number of pixels specified in the method setScrollLineIncrement().
 o scrollVerticalAbsolute(int)
Scrolls to an absolute vertical position.
 o setComponent(Component)
Sets the component in this ScrollingPanel.
 o setHorizontalGap(int)
 o setMinimumHeight(int)
Sets the value to be used for the minimumSize() height of the ScrollingPanel.
 o setMinimumWidth(int)
Sets the value to be used for the minimumSize() width of the ScrollingPanel.
 o setScrollLineIncrement(int)
 o setShowHorizontalScroll(boolean)
 o setShowVerticalScroll(boolean)
 o setVerticalGap(int)

Constructors

 o ScrollingPanel
public ScrollingPanel()
Constructs a default ScrollingPanel. The panel is initialized with a null component, zero minimum height and zero minimum width.

 o ScrollingPanel
public ScrollingPanel(int scrollbarDisplayPolicy)
Constructs a new ScrollingPanel initialized with the specified scrollbarDisplayPolicy.

Parameters:
scrollbarDisplayPolicy - policy for when scrollbars should be shown
 o ScrollingPanel
public ScrollingPanel(Component component,
                      int minWidth,
                      int minHeight)
Constructs a new ScrollingPanel initialized with the specified component, minimum height and minimum width.

Parameters:
component - the component (usually a Panel) to be scrolled
minWidth - the value to be used for the minimumSize() width of the ScrollingPanel
minHeight - the value to be used for the minimumSize() height of the ScrollingPanel

Methods

 o getComponent
public java.awt.Component getComponent()
Gets the current component in the ScrollingPanel. This is the component that gets scrolled.

Returns:
the current component in the ScrollingPanel
See Also:
setComponent
 o getHorizontalGap
public int getHorizontalGap()
Note: getHorizontalGap() is deprecated. removed functionality

 o getMinimumHeight
public int getMinimumHeight()
Gets the value used for the minimumSize() height of the ScrollingPanel.

Returns:
current minimum height value
See Also:
setMinimumHeight
 o getMinimumSize
public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getMinimumWidth
public int getMinimumWidth()
Gets the current value used for the minimumSize() width of the ScrollingPanel.

Returns:
the current minimum width value
 o getPreferredSize
public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o getScrollLineIncrement
public int getScrollLineIncrement()
 o getShowHorizontalScroll
public boolean getShowHorizontalScroll()
Note: getShowHorizontalScroll() is deprecated. replaced by getScrollbarDisplayPolicy

 o getShowVerticalScroll
public boolean getShowVerticalScroll()
Note: getShowVerticalScroll() is deprecated. replaced by getScrollbarDisplayPolicy

 o getVerticalGap
public int getVerticalGap()
Note: getVerticalGap() is deprecated. removed functionality

 o minimumSize
public java.awt.Dimension minimumSize()
Returns the minimum dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the minimum size of this component. The value returned is set using the setMinimumHeight() and setMinimumWidth() methods or when this ScrollingPanel is constructed.

Overrides:
minimumSize in class Container
See Also:
preferredSize, setMinimumHeight, setMinimumWidth
 o preferredSize
public java.awt.Dimension preferredSize()
Returns the recommended dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the recommended size of this component. For each axis, it returns the larger of the current size or the minimum size.

Overrides:
preferredSize in class Container
See Also:
minimumSize
 o scrollDown
public void scrollDown()
Scrolls down by the number of pixels specified in the method setScrollLineIncrement(). The default is one pixel.

See Also:
scrollUp, scrollLeft, scrollRight, setScrollLineIncrement, getScrollLineIncrement
 o scrollHorizontalAbsolute
public void scrollHorizontalAbsolute(int position)
Scrolls to an absolute horizontal position. The contained component's given pixel position will be scrolled to the leftmost part of the scrolling panel. The provided position is constrained to the range [0, component's width - view port width].

Parameters:
position - the pixel position to scroll to
See Also:
scrollVerticalAbsolute
 o scrollLeft
public void scrollLeft()
Scrolls left by the number of pixels specified in the method setScrollLineIncrement(). The default is one pixel.

See Also:
scrollRight, scrollUp, scrollDown, setScrollLineIncrement, getScrollLineIncrement
 o scrollPageDown
public void scrollPageDown()
Scrolls one "page" down. The page size is the size of this ScrollingPanel not including the scroll bar, if present.

See Also:
scrollPageUp, scrollPageLeft, scrollPageRight
 o scrollPageLeft
public void scrollPageLeft()
Scrolls one "page" left. The page size is the size of this ScrollingPanel not including the scroll bar, if present.

See Also:
scrollPageRight, scrollPageUp, scrollPageDown
 o scrollPageRight
public void scrollPageRight()
Scrolls one "page" right. The page size is the size of this ScrollingPanel not including the scroll bar, if present.

See Also:
scrollPageLeft, scrollPageUp, scrollPageDown
 o scrollPageUp
public void scrollPageUp()
Scrolls one "page" up. The page size is the size of this ScrollingPanel not including the scroll bar, if present.

See Also:
scrollPageDown, scrollPageLeft, scrollPageRight
 o scrollRight
public void scrollRight()
Scrolls right by the number of pixels specified in the method setScrollLineIncrement(). The default is one pixel.

See Also:
scrollLeft, scrollUp, scrollDown, setScrollLineIncrement, getScrollLineIncrement
 o scrollUp
public void scrollUp()
Scrolls up by the number of pixels specified in the method setScrollLineIncrement(). The default is one pixel.

See Also:
scrollDown, scrollLeft, scrollRight, setScrollLineIncrement, getScrollLineIncrement
 o scrollVerticalAbsolute
public void scrollVerticalAbsolute(int position)
Scrolls to an absolute vertical position. The contained component's given pixel position will be scrolled to the top line of the scrolling panel. The provided position is constrained to the range [0, component's height - view port height].

Parameters:
position - the pixel position to scroll to
See Also:
scrollHorizontalAbsolute
 o setComponent
public void setComponent(Component comp)
Sets the component in this ScrollingPanel. This is the component that gets scrolled. The ScrollingPanel can only contain one component. Any previous component will be removed before the new one is added.

Parameters:
comp - the component to add
See Also:
getComponent
 o setHorizontalGap
public void setHorizontalGap(int gapPixels)
Note: setHorizontalGap() is deprecated. removed functionality

 o setMinimumHeight
public void setMinimumHeight(int minHeight)
Sets the value to be used for the minimumSize() height of the ScrollingPanel.

Parameters:
minHeight - the value to be used for the minimumSize() height of the ScrollingPanel
See Also:
getMinimumHeight
 o setMinimumWidth
public void setMinimumWidth(int minWidth)
Sets the value to be used for the minimumSize() width of the ScrollingPanel.

Parameters:
minWidth - the value to be used for the minimumSize() width of the ScrollingPanel
See Also:
getMinimumWidth
 o setScrollLineIncrement
public void setScrollLineIncrement(int scrollLineIncrement)
 o setShowHorizontalScroll
public void setShowHorizontalScroll(boolean cond)
Note: setShowHorizontalScroll() is deprecated. replaced by constructor which takes a scrollbarDisplayPolicy

 o setShowVerticalScroll
public void setShowVerticalScroll(boolean cond)
Note: setShowVerticalScroll() is deprecated. replaced by constructor which takes a scrollbarDisplayPolicy

 o setVerticalGap
public void setVerticalGap(int gapPixels)
Note: setVerticalGap() is deprecated. removed functionality


All Packages  Class Hierarchy  This Package  Previous  Next  Index